home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / clue.lha / clue / doc / clue.tex / node171_mn.html < prev    next >
Text File  |  1989-07-12  |  2KB  |  32 lines

  1.  
  2. <H3><A ID="SECTION004811100000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:compression"><tex2html_anchor_mark></A><BR>
  3. Event Compression
  4. </H3><#5176#>
  5.            
  6.       
  7.  
  8. <A ID="2295"><tex2html_anchor_invisible_mark></A><A ID="2296"><tex2html_anchor_invisible_mark></A>
  9. CLUE allows the programmer defining a contact class to ignore certain redundant
  10. input events in order to improve contact performance. ``Compression'' of
  11. redundant events is controlled by the class slots <#2297#><TT>compress-exposures</TT><#2297#> and
  12. <#2298#><TT>compress-motion</TT><#2298#>, which are shared by all instances of a contact class.
  13.  
  14. <P>
  15. Contacts which respond to changes in the pointer position may find it difficult
  16. to keep up with a rapidly-moving mouse and, in fact, may not need to recognize every
  17. individual motion event. Initializing the <#2299#><TT>compress-motion</TT><#2299#> slot to <#2300#><TT>:on</TT><#2300#> will cause all but the last in a sequence of consecutive <#2301#><TT>:motion-notify</TT><#2301#>
  18. events to be
  19. ignored, with only the most recent event being dispatched to the contact.
  20.  
  21. <P>
  22. Simple contacts may find it more efficient always to display the entire contact
  23. image, ignoring <#2302#><TT>x</TT><#2302#>, <#2303#><TT>y</TT><#2303#>, <#2304#><TT>width</TT><#2304#>, and <#2305#><TT>height</TT><#2305#> arguments
  24. to the <#2306#><TT>display</TT><#2306#> method.
  25. <A ID="2307"><tex2html_anchor_invisible_mark></A>
  26.   Such contacts will not be interested in partial
  27. exposure events.  Initializing the <#2308#><TT>compress-exposures</TT><#2308#> slot to <#2309#><TT>:on</TT><#2309#> will
  28. result in <#2310#><TT>:exposure</TT><#2310#> events being dispatched to the contact only when the
  29. expose count is zero (i.e.  the last of a series of partial exposure events).
  30.  
  31. <P>
  32. =0